package com.example.demo.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.service.UserService;

@RestController
public class UserController {

	@Autowired
	public UserService userService;

	// http://localhost:8080/getUser
	@RequestMapping("/getUser")
	public String getUser() {
		return userService.getUsers();
	}
	
}
